package yamen.bdwm.datastruct;

import yamen.bdwm.R;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;


public class WmItem {
    public String id;
    public String title;
    public String url;
    public String tag;
    
    //mResource must have:
    //	item_title
    //	
    public View getView(View superView, LayoutInflater mLayoutInflater, int mResource, View convertView, ViewGroup parent)
	{
		if(superView==null)
			superView=mLayoutInflater.inflate(mResource, null);
		TextView tv=(TextView) superView.findViewById(R.id.item_title_tv);
		if(tv!=null)
			tv.setText(title);
		return superView;
	}	

}
